﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wedo.Recognition.Domain.Mapping;
using Wedo.Recognition.Domain.Models;

namespace Wedo.Recognition.Domain.Mapping
{
    public class RecieveRecord_Mapping : EntityConfiguration<RecieveRecord>
    {
        public RecieveRecord_Mapping()
        {
            ToTable("RecieveRecord");

            Property(s => s.Assignment).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.Posting);
            Property(s => s.Account).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.Amount);

            Property(s => s.LineText).HasMaxLength(200).HasColumnType("varchar");
            Property(s => s.TaxCode).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.Spe).HasMaxLength(50).HasColumnType("varchar");

            Property(s => s.NewCompanyCode).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.Cctr).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.Pctr).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.Order).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.AssetCode).HasMaxLength(50).HasColumnType("varchar");

            Property(s => s.Personnel).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.Functionnal).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.DistChannel).HasMaxLength(50).HasColumnType("varchar");

            Property(s => s.Plant).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.Quantity).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.Uom).HasMaxLength(50).HasColumnType("varchar");

            Property(s => s.Country).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.Cust).HasMaxLength(50).HasColumnType("varchar");

        }
 

    }
}
